using System;
using System.Collections.Generic;

public static class ObjectCenterService
{
	static ObjectCenter mObjectCenter;
	
	public static void Initialize()
	{
		mObjectCenter = new ObjectCenter();
	}
	
	public static void Register<T> (T obj)
	{
		mObjectCenter.Register<T>(obj);
	}
	
	public static void UnRegister<T> ()
	{
		mObjectCenter.UnRegister<T>();
	}
	
	// scene -> stage -> global
	public static T Query<T> ()
	{
		string typeName = typeof(T).ToString();
		
		T i = default(T);

		if (i == null)
			i = (T)mObjectCenter.Query<T>();
		
		return i;
	}
}

